package java8.collector.demo01;

import java8.lambda.demo01.AbstractAppleBeforeTest;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
 * @author ChangLiang
 * @date 2020/4/23
 */
public class AppTest extends AbstractAppleBeforeTest {

    @Test
    @DisplayName("test previous implementation")
    public void test(){
        System.out.println(AppleCollector.groupAppleByColorPreviously(list));
    }

    @Test
    @DisplayName("test group by function")
    public void test2() {
        System.out.println(AppleCollector.groupAppleByFunction(list));
    }

    @Test
    @DisplayName("test grout by collector")
    public void test3() {
        System.out.println(AppleCollector.groupAppleByCollector(list));
    }
}
